#ifndef FRMSETTING_H
#define FRMSETTING_H

#include <QWidget>

class MainWindow;

namespace Ui {
class FrmSetting;
}

//UHF Reader Inventory Paramenters Setting Form

class FrmSetting : public QWidget
{
    Q_OBJECT

public:
    explicit FrmSetting(QWidget *parent = nullptr);
    ~FrmSetting();
    void sitch_tab(int idx);
private slots:
    void on_btn_OK_clicked();

    void on_btn_Cancel_clicked();

    void on_ckbSelEnable_stateChanged(int arg1);

    void on_ckbMetaEnable_stateChanged(int arg1);

    void on_ckbReadEnable_stateChanged(int arg1);

    void on_ckbWriteEnable_stateChanged(int arg1);

    void on_ckbLockEnable_stateChanged(int arg1);

    void on_ckbLockUserMem_stateChanged(int arg1);

    void on_ckbLockTIDMem_stateChanged(int arg1);

    void on_ckbLockEPCMem_stateChanged(int arg1);

    void on_ckbLockAccessPwd_stateChanged(int arg1);

    void on_ckbLockKillPwd_stateChanged(int arg1);

    void on_ckbMetaTagData_stateChanged(int arg1);

private:
    Ui::FrmSetting *ui;
    MainWindow *m_parent;
    void init();
    void bind_data();
    int save_data();
};

#endif // FRMSETTING_H
